package com.shuai.utils.tree;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 树视图
 *
 * @author shuai
 * @since 2022
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysTreeVo {

    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 上级ID
     */
    private String pid;

    /**
     * 名称
     */
    private String label;

    /**
     * 级别
     */
    private Integer level;

    /**
     * 层级
     */
    private String labelPath;

    /**
     * 备注
     */
    private String remark;

    /**
     * 子集
     */
    private List<SysTreeVo> children;

}
